package com.boatAnchorAssistant.pojo.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;


import javax.persistence.Table;

/**
 * 【描 述】：
 * 【环 境】：J2SE 17
 * 【详 细】：
 *
 * @author 李松林
 * @version v1.0 2024/4/23 新建
 * @since 2024/4/23
 */
@Data
@Table
@AccEntity(value = "部门联系人",type = EntityType.SECONDARY_SERVICE_ENTITY)
@TableComment("部门联系人")
public class DepartmentLinkmanMp extends DomainBaseEntity<DepartmentLinkmanMp> {


    /**
     * 部门id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            length = 20,
            comment = "部门id",
            isNull = false)
    private Long departmentId;


    /**
     * 用户id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            length = 20,
            comment = "用户id",
            isNull = false)
    private Long userId;

}
